package com.lemon.jvm.hotspot.src.share.vm.intepreter;

import com.lemon.jvm.hotspot.src.share.vm.oops.CodeAttributeInfo;
import com.lemon.jvm.hotspot.src.share.vm.oops.MethodInfo;

public class BaseBytecodeStream {

    protected MethodInfo belongMethod;
    protected CodeAttributeInfo belongCode;

    protected int length;
    protected int index;
    protected byte[] codes;

    public MethodInfo getBelongMethod() {
        return belongMethod;
    }

    public void setBelongMethod(MethodInfo belongMethod) {
        this.belongMethod = belongMethod;
    }

    public CodeAttributeInfo getBelongCode() {
        return belongCode;
    }

    public void setBelongCode(CodeAttributeInfo belongCode) {
        this.belongCode = belongCode;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public byte[] getCodes() {
        return codes;
    }

    public void setCodes(byte[] codes) {
        this.codes = codes;
    }
}
